package zhao.yao.chen.backend.basic.framework.dict.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import zhao.yao.chen.backend.basic.framework.dict.core.DictFrameworkUtils;
import zhao.yao.chen.backend.basic.module.system.api.dict.DictDataApi;

@Configuration
public class YudaoDictAutoConfiguration {

    @Bean
    @SuppressWarnings("InstantiationOfUtilityClass")
    public DictFrameworkUtils dictUtils(DictDataApi dictDataApi) {
        DictFrameworkUtils.init(dictDataApi);
        return new DictFrameworkUtils();
    }

}
